package com.onlyyou.user.mapper;

import com.onlyyou.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 小野
 * @Date: 2020/1/12 15:38
 * user 表映射接口
 */
@Repository
@Mapper
public interface UserMapper {
    List<User> findAll(Integer pages,Integer rows);

    User findByName(String username);

    void add(User user);

    User update(User user);

    User findById(Long id);

    void delete(Long id);

    Integer rows();
}
